var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /* * jQuery OwlCarousel v1.27 * * Copyright (c) 2013 Bartosz Wojciechowski * http://www.owlgraphic.com/owlcarousel/ * * Licensed under MIT * */ if ( typeof Object.create !== "function" ) { Object.create = function( obj ) { function F() {}; F.prototype = obj; return new F(); }; } (function( $, window, document, undefined ) { var Carousel = { init :function(options, el){ var base = this; base.options = $.extend({}, $.fn.owlCarousel.options, options); base.userOptions = options; var elem = el; var $elem = $(el); base.$elem = $elem; base.loadContent(); }, loadContent : function(){ var base = this; if (typeof base.options.beforeInit === "function") { base.options.beforeInit.apply(this,[base.$elem]); } if (typeof base.options.jsonPath === "string") { var url = base.options.jsonPath; function getData(data) { if (typeof base.options.jsonSuccess === "function") { base.options.jsonSuccess.apply(this,[data]); } else { var content = ""; for(var i in data["owl"]){ content += data["owl"][i]["item"]; } base.$elem.html(content); } base.logIn(); } $.getJSON(url,getData); } else { base.logIn(); } }, logIn : function(action){ var base = this; base.$elem.css({opacity: 0}); base.orignalItems = base.options.items; base.checkBrowser(); base.wrapperWidth = 0; base.checkVisible; base.setVars(); }, setVars : function(){ var base = this; if(base.$elem.children().length === 0){return false} base.baseClass(); base.eventTypes(); base.$userItems = base.$elem.children(); base.itemsAmount = base.$userItems.length; base.wrapItems(); base.$owlItems = base.$elem.find(".owl-item"); base.$owlWrapper = base.$elem.find(".owl-wrapper"); base.playDirection = "next"; base.prevItem = 0;//base.options.startPosition; base.currentItem = 0; //Starting Position base.customEvents(); base.onStartup(); }, onStartup : function(){ var base = this; base.updateItems(); base.calculateAll(); base.buildControls(); base.updateControls(); base.response(); base.moveEvents(); base.stopOnHover(); base.owlStatus(); if(base.options.transitionStyle !== false){ base.transitionTypes(base.options.transitionStyle); } if(base.options.autoPlay === true){ base.options.autoPlay = 5000; } base.play(); base.$elem.find(".owl-wrapper").css("display","block") if(!base.$elem.is(":visible")){ base.watchVisibility(); } else { base.$elem.css("opacity",1); } base.onstartup = false; base.eachMoveUpdate(); if (typeof base.options.afterInit === "function") { base.options.afterInit.apply(this,[base.$elem]); } }, eachMoveUpdate : function(){ var base = this; if(base.options.lazyLoad === true){ base.lazyLoad(); } if(base.options.autoHeight === true){ base.autoHeight(); } if(base.options.addClassActive === true){ base.addClassActive(); } if (typeof base.options.afterAction === "function") { base.options.afterAction.apply(this,[base.$elem]); } }, updateVars : function(){ var base = this; if(typeof base.options.beforeUpdate === "function") { base.options.beforeUpdate.apply(this,[base.$elem]); } base.watchVisibility(); base.updateItems(); base.calculateAll(); base.updatePosition(); base.updateControls(); base.eachMoveUpdate(); if(typeof base.options.afterUpdate === "function") { base.options.afterUpdate.apply(this,[base.$elem]); } }, reload : function(elements){ var base = this; setTimeout(function(){ base.updateVars(); },0) }, watchVisibility : function(){ var base = this; if(base.$elem.is(":visible") === false){ base.$elem.css({opacity: 0}); clearInterval(base.autoPlayInterval); clearInterval(base.checkVisible); } else { return false; } base.checkVisible = setInterval(function(){ if (base.$elem.is(":visible")) { base.reload(); base.$elem.animate({opacity: 1},200); clearInterval(base.checkVisible); } }, 500); }, wrapItems : function(){ var base = this; base.$userItems.wrapAll("